#include "Precompiled.hpp"

#include "GlobalContainer.hpp"

GlobalContainer* GlobalContainer::globalContainerPointer = NULL;

GlobalContainer::GlobalContainer()
{
  ASSERT(globalContainerPointer == NULL);
  globalContainerPointer = this;
  RegisterServices();
}

GlobalContainer::~GlobalContainer()
{}

GlobalContainer* GlobalContainer::GetGlobalContainerPointer()
{
  return globalContainerPointer;
}

void GlobalContainer::Run()
{
  serviceManager.Run();
}

void GlobalContainer::RegisterServices()
{
  serviceManager.AddService(&DummyService);
  serviceManager.InitializeAll();
}